﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TV
{
    public class CBroadcastDateTime
    {

        protected DateTime m_datetime;

        public CBroadcastDateTime(DateTime dt)
        {
            TimeSpan oneDay = new TimeSpan(1, 0, 0, 0);

            int hh = dt.Hour;

            if (hh > 0 && hh < 6)
            {
                m_datetime = dt.Subtract(oneDay);
            }
            else
            {
                m_datetime = dt;
            }


        }

        public int Year
        {
            get
            {
                return m_datetime.Year;
            }
        }


    }
}
